package clojuretest.model;

public class Profile
{
	private String _nickName = null; 
	private EquipmentConfig _activeEquipmentConfig = null;
	private int _currentNumberOfProblems = -1;

	public Profile(String nick, EquipmentConfig ec , int nop)
	{
		_nickName = nick;
		_activeEquipmentConfig = ec;
		_currentNumberOfProblems = nop;
	}

	public String getNickName()
	{
		return _nickName;
	}
	

	public EquipmentConfig getActiveEquipmentConfig()
	{
		return _activeEquipmentConfig;
	}

	public int getCommunication(){
		return getActiveEquipmentConfig().getCommunication();
	}
	
	
	public int getCurrentNumberOfProblems()
	{
		return _currentNumberOfProblems;
	}
	
	public String toString(){
		return (getNickName() + " | Number of problems : " + getCurrentNumberOfProblems() + " \n " + getActiveEquipmentConfig());
	}
}

